# 容器类型转换
# tuple()
# 将某个序列转换成元组
list1 = [10, 20, 30, 40, 50]
s1 = {100, 200, 300, 400}
t1 = ('a', 'b', 'c', 'd')

# tuple(): 转换成元组
t2 = tuple(list1)
print(t2)
print(type(t2))
t3 = tuple(s1)
print(t3)
print(type(t3))
# list()： 转换成列表
list2 = list(s1)
list3 = list(t1)
print(list2)
print(list3)
print(type(list3))
print(type(list2))
# set()： 转换成集合
s2 = set(list1)
s3 = set(t1)
print(s2)
print(s3)
print(type(s2))
print(type(s3))